﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TopicList.ascx.cs" Inherits="Lenovo.CFI.Web.VP.TopicList" %>
<tbwc:StyleSheetControl ID="SscList" runat="server" CssPath="list.css"></tbwc:StyleSheetControl>
<tbwc:StyleSheetControl ID="SscDp" runat="server" CssPath="DatePicker/datepicker.css"></tbwc:StyleSheetControl>
<tbwc:StyleSheetControl ID="SccDialogs" runat="server" CssPath="modaldialogs.css"></tbwc:StyleSheetControl>
<tbwc:StyleSheetControl ID="SscThis" runat="server" CssPath="VP/topic/topiclist.css"></tbwc:StyleSheetControl>
<ajaxToolkit:ToolkitScriptManager runat="Server" EnablePartialRendering="true" CombineScripts="false" ID="ScriptManager1" />

<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
        <div id="relatedoperation">
            <div style="float:right" class="operation"><asp:Button ID="BtnAdd" runat="server" SkinID="EditPrimary" Text="New Topic" ToolTip="New Topic"/></div>
        </div>
        <div class="dataListArea">
            <tbwc:GridViewEx ID="GvTopics" runat="server" SkinID="List" DataKeyNames="ID" AllowPaging="false"
                OnRowDataBound="GvTopics_RowDataBound" OnRowCommand="GvTopics_RowCommand">
                <Columns>
                    <asp:TemplateField HeaderText="No.">
                        <itemstyle cssclass="listNo" />
                        <itemtemplate><asp:Literal ID="LtrNo" runat="server"></asp:Literal></itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Title">
                        <itemtemplate><asp:Literal ID="LtrTitle" runat="server"></asp:Literal></itemtemplate>
                        <itemstyle cssclass="title" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="T-DC">
                        <itemtemplate><%# Eval("Tdc")%></itemtemplate>
                        <itemstyle cssclass="tdc" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Start">
                        <itemtemplate><%# Eval("StartTime", "{0:yyyy-MM-dd}")%></itemtemplate>
                        <itemstyle cssclass="time" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Deadline">
                        <itemtemplate><%# Eval("DeadlineTime", "{0:yyyy-MM-dd}")%></itemtemplate>
                        <itemstyle cssclass="time" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Review">
                        <itemtemplate><%# Eval("ReviewTime", "{0:yyyy-MM-dd}")%></itemtemplate>
                        <itemstyle cssclass="time" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Status">
                        <itemtemplate><%# Eval("Status")%></itemtemplate>
                        <itemstyle cssclass="status" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText=" ">
                        <itemtemplate><asp:LinkButton ID="BtnPhaseAction1" runat="server" CssClass="textbtn"></asp:LinkButton>
                        <asp:LinkButton ID="BtnPhaseAction2" runat="server" CssClass="textbtn"></asp:LinkButton>
                        <asp:LinkButton ID="BtnPhaseAction3" runat="server" CssClass="textbtn"></asp:LinkButton></itemtemplate>
                        <itemstyle cssclass="listOp" />
                    </asp:TemplateField>
                </Columns>
            </tbwc:GridViewEx>
        </div>

        <asp:Button ID="BtnHiddenEdit" runat="Server" Style="display:none" />
        <ajaxToolKit:ModalPopupExtender ID="MpeSuggestion" runat="server" TargetControlID="BtnHiddenEdit" 
            PopupControlID="PnlSuggestion" CancelControlID="BtnCancelSuggestion" 
            BackgroundCssClass="modalBackground" PopupDragHandleControlID="PnlCaptionSuggestion" Drag="false">
        </ajaxToolKit:ModalPopupExtender>
        <asp:Panel ID="PnlSuggestion" runat="server" CssClass="modalBox detail" Style="display: none;" Width="400px">
            <asp:Panel ID="PnlCaptionSuggestion" runat="server" CssClass="caption" Style="margin-bottom: 10px; cursor: hand;">
		        Suggestion</asp:Panel>
	        <div><asp:Label ID="LblFeedbackSuggestion" runat="server" AssociatedControlID="DpFeedbackSuggestion" Text="Feedback Date:" CssClass="title"></asp:Label><tbwc:DatePicker 
                ID="DpFeedbackSuggestion" runat="server" Width="8.5em" /><span class="hint"><asp:RequiredFieldValidator
                ID="RfvFeedbackSuggestion" runat="server" ControlToValidate="DpFeedbackSuggestion" ErrorMessage="Required" Display="Dynamic" ValidationGroup="Suggestion"></asp:RequiredFieldValidator></span></div>
            <div><asp:Label ID="LblSubmitSuggestion" runat="server" AssociatedControlID="DpSubmitSuggestion" Text="Submit Date:" CssClass="title"></asp:Label><tbwc:DatePicker 
                ID="DpSubmitSuggestion" runat="server" Width="8.5em" /><span class="hint"><asp:RequiredFieldValidator
                ID="RfvSubmitSuggestion" runat="server" ControlToValidate="DpSubmitSuggestion" ErrorMessage="Required" Display="Dynamic" ValidationGroup="Suggestion"></asp:RequiredFieldValidator></span></div>
	        <div><asp:Label ID="LblGmoSuggestion" runat="server" AssociatedControlID="DpGmoSuggestion" Text="Gmo Date:" CssClass="title"></asp:Label><tbwc:DatePicker 
                ID="DpGmoSuggestion" runat="server" Width="8.5em" /><span class="hint"><asp:RequiredFieldValidator
                ID="RfvGmoSuggestion" runat="server" ControlToValidate="DpGmoSuggestion" ErrorMessage="Required" Display="Dynamic" ValidationGroup="Suggestion"></asp:RequiredFieldValidator></span></div>
            <div style="white-space: nowrap; text-align: center;">
		        <asp:Button ID="BtnSaveSuggestion" runat="server" Text="Save" OnClick="BtnSaveSuggestion_Click" CausesValidation="true" ValidationGroup="Suggestion"/>
		        <asp:Button ID="BtnCancelSuggestion" runat="server" CausesValidation="false" Text="Cancel"/>
	        </div>
        </asp:Panel> 
       
        <asp:Button ID="BtnHiddenEdit2" runat="Server" Style="display:none" /> 
        <ajaxToolKit:ModalPopupExtender ID="MpeExecution" runat="server" TargetControlID="BtnHiddenEdit2" 
            PopupControlID="PnlExecution" CancelControlID="BtnCancelExecution" 
            BackgroundCssClass="modalBackground" PopupDragHandleControlID="PnlCaptionExecution" Drag="false">
        </ajaxToolKit:ModalPopupExtender>
        <asp:Panel ID="PnlExecution" runat="server" CssClass="modalBox detail" Style="display: none;" Width="400px">
            <asp:Panel ID="PnlCaptionExecution" runat="server" CssClass="caption" Style="margin-bottom: 10px; cursor: hand;">
		        Execution</asp:Panel>
            <div><asp:Label ID="LblSubmitExecution" runat="server" AssociatedControlID="DpSubmitExecution" Text="Submit Date:" CssClass="title"></asp:Label><tbwc:DatePicker 
                ID="DpSubmitExecution" runat="server" Width="8.5em" /><span class="hint"><asp:RequiredFieldValidator
                ID="RfvSubmitExecution" runat="server" ControlToValidate="DpSubmitExecution" ErrorMessage="Required" Display="Dynamic" ValidationGroup="Execution"></asp:RequiredFieldValidator></span></div>
        
            <div><asp:Label ID="LblGmoExecution" runat="server" AssociatedControlID="DpGmoExecution" Text="Gmo Report Date:" CssClass="title"></asp:Label><tbwc:DatePicker 
                ID="DpGmoExecution" runat="server" Width="8.5em" /><span class="hint"><asp:RequiredFieldValidator
                ID="RfvGmoExecution" runat="server" ControlToValidate="DpGmoExecution" ErrorMessage="Required" Display="Dynamic" ValidationGroup="Execution"></asp:RequiredFieldValidator></span></div>

            <div><asp:Label ID="LblReportExecutionMkt" runat="server" AssociatedControlID="DpReportExecutionMkt" Text="MKT Report Date:" CssClass="title"></asp:Label><tbwc:DatePicker 
                ID="DpReportExecutionMkt" runat="server" Width="8.5em" /><span class="hint"><asp:RequiredFieldValidator
                ID="RfvReportExecutionMkt" runat="server" ControlToValidate="DpReportExecutionMkt" ErrorMessage="Required" Display="Dynamic" ValidationGroup="Execution"></asp:RequiredFieldValidator></span></div>

            <div><asp:Label ID="LblSubmitTo" runat="server" AssociatedControlID="TxtSubmitTo" Text="Principal:" CssClass="title"></asp:Label><asp:TextBox
                ID="TxtSubmitTo" runat="server" Width="9em"></asp:TextBox><span class="hint"><asp:RequiredFieldValidator
                ID="RfvSubmitTo" runat="server" ControlToValidate="TxtSubmitTo" ErrorMessage="Required" Display="Dynamic" ValidationGroup="Execution"></asp:RequiredFieldValidator></span></div>

            <div style="white-space: nowrap; text-align: center;">
		        <asp:Button ID="BtnSaveExecution" runat="server" Text="Save" OnClick="BtnSaveExecution_Click" CausesValidation="true" ValidationGroup="Execution"/>
		        <asp:Button ID="BtnCancelExecution" runat="server" CausesValidation="false" Text="Cancel"/>
	        </div>
        </asp:Panel>    
   
    </ContentTemplate>
</asp:UpdatePanel>
